Component({
    properties: {
        showAvaModal: {
            type: Boolean,
            value: !1
        },
        nickName: {
            type: String,
            value: ""
        },
        avatarUrl: {
            type: String,
            value: ""
        }
    },
    data: {
        showAvaModal: !1,
        avatarUrl: null,
        nickName: null
    },
    methods: {
        catchtouchmove() {},
        chooseavatar(a) {
            console.log('------------a-----------',a);
            const t = a.detail.avatarUrl;
            this.setData({
                avatarUrl: t
            });
        },
        bindblur(a) {
            const t = a.detail.value;
            this.data.nickName = t;
        },
        setBtnTap() {
            const {avatarUrl: a, nickName: t} = this.data;
            this.triggerEvent("getAvaNickData", {
                avatarUrl: a,
                nickName: t
            });
        },
        closeModalTap() {
            this.setData({
                showAvaModal: !1,
                nickName: null,
                avatarUrl: null
            });
        }
    }
});